# /**************************************************************************** 
#  * Meta，一个轻量级的静态分区Hypervisor 
#  *
#  * 版权(c) , 2022-
#  *
#  * 作者:
#  *      Tupelo Shen <shenwanjiang2013@163.com>
#  *
#  * Meta是一个自由软件，你可以在遵循GNU GPLv2协议的条件下，重新修改并发布它。
#  *
#  ***************************************************************************/

cpu-objs-y+=boot.o
cpu-objs-y+=exceptions.o
cpu-objs-y+=pagetables.o
cpu-objs-y+=relocate.o

cpu-objs-y+=cpu.o
cpu-objs-y+=aborts.o
cpu-objs-y+=gic.o
# cpu-objs-y+=gicv3.o
cpu-objs-y+=vgic.o
# cpu-objs-y+=vgicv3.o
ifeq ($(GIC_VERSION), GICV2)
	cpu-objs-y+=vgicv2.o
	cpu-objs-y+=gicv2.o
else ifeq ($(GIC_VERSION), GICV3)
	cpu-objs-y+=vgicv3.o
	cpu-objs-y+=gicv3.o
else ifeq ($(GIC_VERSION),)
$(error Platform must define GIC_VERSION)
else
$(error Invalid GIC version $(GIC_VERSION))
endif
cpu-objs-y+=interrupts.o

cpu-objs-y+=psci.o
cpu-objs-y+=smc.o

cpu-objs-y+=cache.o
cpu-objs-y+=mem.o
cpu-objs-y+=iommu.o
cpu-objs-y+=smmuv2.o
cpu-objs-y+=page_table.o

cpu-objs-y+=config.o
cpu-objs-y+=platform.o
cpu-objs-y+=vm.o
cpu-objs-y+=vmm.o